package br.sc.senai.model.entity;

public class Automovel extends EntityBase {

	
	private String nome;
	
	public Automovel() {
		super();
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	@Override
	public boolean equals(Object obj) {
		
		if (obj == null || !this.getClass().getSimpleName().equals(obj.getClass().getSimpleName())) return false;
		
		return this.getId() == ((Automovel) obj).getId();
	}
		
}
